import {HOM,ITEM,CHOOSE,PUSH,SEACH,SLEEP} from './mutations_type'
export default{
    [HOM](state){
        confirm(state.meet);
    },
    [ITEM](state,val){
        state.item=val
    },
    [CHOOSE](state,val){
        state.choose=val
    },
    [PUSH](state,val){
        state.enddata.push(val)
    },
    [SLEEP](state,val){
        state.sleep=val
    },
    [SEACH](state,opt){
        this.myaxios({
            url: opt.url,
            method: "post",
            data: opt.data
          })
            .then((e) => {
              console.log(e);
              state.try=e.data.data
            })
            .catch(() => {
              console.log("error");
            });
    },
    typeWhat(state,value){
        state.type = value;
    },
    upIdx(state,value){
        state.idx = value
    }
}